package com.sky.service.admin;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageHelper;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.pojo.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishItemVO;
import com.sky.vo.DishSelectIdVO;
import com.sky.vo.DishVO;

import java.util.List;

public interface DishService {
    Result<PageResult> selectPageCategory(DishPageQueryDTO dto);

    List<DishSelectIdVO> selectId(Integer categoryId);

    int insertDish(DishDTO dto);

    DishVO selectDishAll(Long id);

    int updateDishAll(DishDTO dto);

    int deletByIdDishAll(List<Long> ids);

    /**
     * 小程序条件查询菜品和口味
     * @param dish
     * @return
     */
    List<DishVO> listWithFlavor(Dish dish);
}
